﻿using System.Collections.Generic;
using System.Linq;

namespace Citi.GocAttributes.Domain
{
    public partial class RuleCondition
    {
        public IEnumerable<RuleCondition> GetRulesByRuleId(int ruleId)
        {
            return SelectAll<RuleCondition>().Where(x => x.RuleId == ruleId).ToList();
        }
    }
}